<?php
namespace App\Factory;

class SmsFactory{
    protected $service;

    public function __construct()
    {
    }

    public function send($data){
        $config_sms = config('sms.sms_platform');
        $class = '\\App\\Library\\Sms\\'.ucfirst($config_sms).'Sms';
        $this->service = new $class();
        return $this->service->send($data);
    }
}
